$(document).ready(function () {

  $('#btnLogin').bind('click', btnLoginClick);

})

function btnLoginClick() {
  $.ajax({
    url: 'http://test.org/user/login',
    method: 'get',
    dataType: 'json',
    success: function (data) {

         if($('#username').val()==data.username&&$('#password').val()==data.password){
              window.location = 'employee.html';
         }else{
             $('#err').show();
         }
    }

  })

}
